Add a single image to any section using these fields in the section's data:
Single images can be used in any section type (about, publications, research, education, contact). You can only use one image per section. To add multiple images or mix images with other media, use Galleries or Groups.
You can't use two images in one section normally.
Wrong — two images in one section:
{
"image": "img1.jpg",
"image_alt": "First",
"image": "img2.jpg",
"image_alt": "Second"
}
{
"image": "img1.jpg",
"image_alt": "First"
},
{
"image": "img2.jpg",
"image_alt": "Second"
}
Right — one image per section:
{
"image": "img1.jpg",
"image_alt": "First"
}
To add two or more images, use Groups. See Galleries or Groups in the menu.
These are the available options for single images:
| Field | Description |
|---|---|
image | Path to the image file |
image_alt | Alt text for accessibility |
caption | Text displayed below the image |
credit | Label shown at top-right corner |
w, h | Width and height for layout stability |
ar | Set true to force aspect ratio from w/h |
{
"image": "path/to/image.jpg",
"image_alt": "Description",
"w": 800,
"h": 400,
"ar": true
}
{
"image": "path/to/image.jpg",
"image_alt": "Description",
"credit": "Photo credit",
"w": 800,
"h": 400,
"ar": true
}
Caption text below image
{
"image": "path/to/image.jpg",
"image_alt": "Description",
"caption": "Text below image",
"w": 800,
"h": 400,
"ar": true
}
Caption text below image
{
"image": "path/to/image.jpg",
"image_alt": "Description",
"caption": "Text below image",
"credit": "Photo credit",
"w": 800,
"h": 400,
"ar": true
}
ar (aspect ratio locked){
"image": "path/to/image.jpg",
"image_alt": "Description",
"w": 800,
"h": 400,
"ar": true
}
ar (natural size){
"image": "path/to/image.jpg",
"image_alt": "Description",
"w": 800,
"h": 400
}